package com.xq.constants;
public class ErrorCodeConstants {

    // 通用错误
    public static final String SUCCESS = "操作成功";
    public static final String UNKNOWN_ERROR = "未知错误";
    public static final String INVALID_REQUEST = "请求参数无效";
    public static final String SERVER_ERROR = "服务器内部错误";
    public static final String ERROR="操作失败";

    // 用户相关错误
    public static final String USER_NOT_FOUND = "用户不存在";
    public static final String USER_ALREADY_EXISTS = "用户已存在";
    public static final String INVALID_USERNAME_OR_PASSWORD = "用户名或密码无效";
    public static final String PASSWORD_MISMATCH = "密码不匹配";
    public static final String INVALID_PHONE_NUMBER = "手机号无效";
    public static final String INVALID_EMAIL_ADDRESS = "邮箱地址无效";

    // 验证码相关错误
    public static final String INVALID_VERIFICATION_CODE = "验证码错误或已过期";
    public static final String VERIFICATION_CODE_EXPIRED = "验证码已过期";

    // 权限相关错误
    public static final String UNAUTHORIZED = "未授权访问";
    public static final String PERMISSION_DENIED = "没有权限执行此操作";

    // 数据相关错误
    public static final String DATA_NOT_FOUND = "数据未找到";
    public static final String DATA_ALREADY_EXISTS = "数据已存在";
    public static final String DATA_VALIDATION_FAILED = "数据验证失败";

    // 系统相关错误
    public static final String SYSTEM_MAINTENANCE = "系统维护中，请稍后再试";
    public static final String SESSION_EXPIRED = "会话已过期，请重新登录";

    // 自定义错误
    public static final String CUSTOM_ERROR = "自定义错误信息";

    // 不允许实例化
    private ErrorCodeConstants() {
        throw new IllegalStateException("Utility class");
    }
}